package com.atguigu.cloud.config;

import feign.Logger;
import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import static java.util.concurrent.TimeUnit.SECONDS;

/**
 * @author yuanx
 * @date 2024/3/13 22:37
 */
@Configuration
public class FeignConfig {
    @Bean
    public Retryer myRetryer(){
//        return Retryer.NEVER_RETRY;
        return new Retryer.Default();
    }


    @Bean
    Logger.Level feignLoggerLever(){
        return  Logger.Level.FULL;
    }
}
